//
//  FSMainAdressViewController.m
//  Trade
//
//  Created by 刘沿 on 16/4/14.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSMainAdressViewController.h"

@interface FSMainAdressViewController ()<UITableViewDelegate>

@end

@implementation FSMainAdressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"选择人员";
}


-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
//    if (indexPath.row == 0) {
//        FSCountryViewController * countyVC = (FSCountryViewController*)[self.storyboard instantiateViewControllerWithIdentifier:@"countyVCID"];
//        [self.navigationController pushViewController:countyVC animated:YES];
//
//    }
   
    if (indexPath.row == 0) {
        FSExpendViewController * expendVC = [[FSExpendViewController alloc] init];
        expendVC.type = UnitDataType;
        [self.navigationController pushViewController:expendVC animated:YES];
        
    }
//    else if (indexPath.row == 2){
//        FSExpendViewController * expendVC = [[FSExpendViewController alloc] init];
//        expendVC.type = DepartmentDataType;
//        [self.navigationController pushViewController:expendVC animated:YES];
//    }
    
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    if (self.addressType == LessMainAddressType && indexPath.row == 2) {
        return 0;
    }
    return 44;
}




@end

















